import http from '@/common/js/httpRequest'


//获得模板列表
export function getPrintModelList (params) {
  return http({
    method: 'get',
    url: '/api/print/models',
    params
  })
}

//打印预览
export function printView (params) {
  return http({
    method: 'get',
    url: '/api/print/report',
    params
  })
}

//打印稳考请验单预览
export function printCheckView (params) {
  return http({
    method: 'get',
    url: '/api/print/printCheck',
    params
  })
}

//打印稳考请验单预览
export function printYfbView (params) {
  return http({
    method: 'get',
    url: '/api/print/yfbCheckPrint',
    params
  })
}

//打印稳考请验单预览
export function printZcView (params) {
  return http({
    method: 'get',
    url: '/api/print/zcCheckPrint',
    params
  })
}

//打印稳考请验单预览
export function printReceive (params) {
  return http({
    method: 'get',
    url: '/api/print/receive',
    params
  })
}

//打印物料标识卡
export function printProdcutCard (params) {
  return http({
    method: 'get',
    url: '/api/print/yfbProductCard',
    params
  })
}

//查询具体货品绑定的打印模板
export function delModel (data) {
  return http({
    method: 'post',
    url: '/api/print/delModel',
    data
  })
}

//下载docx文件
export function downloadDocx (params) {
  return http({
    method: 'get',
    url: '/api/print/downLoad',
    params
  })
}

//打印产品放行单
export function zcPassPrint (params) {
  return http({
    method: 'get',
    url: '/api/print/zcPassPrint',
    params
  })
}

//打印物料放行单
export function yfbPassPrint (params) {
  return http({
    method: 'get',
    url: '/api/print/yfbPassPrint',
    params
  })
}

//打印物料放行单
export function hwkPrint (params) {
  return http({
    method: 'get',
    url: '/api/print/hwkPrint',
    params
  })
}

//打印取样记录
export function getHistoryPrint (params) {
  return http({
    method: 'get',
    url: '/api/print/getHistoryPrint',
    params
  })
}

//打印取样证
export function printCard (params) {
  return http({
    method: 'get',
    url: '/api/print/printCard',
    params
  })
}

export function viewModel (data) {
  return http({
    method: 'post',
    url: '/api/print/viewModel',
	data
  })
}

//打印放行单
export function pass (content,checkId,version) {
  return http({
    method: 'get',
    url: '/api/print/passPrint/'+content+"/"+checkId+"/"+version
  })
}

//批量打印放行单
export function mpass (content,checkId,version) {
  return http({
    method: 'get',
    url: '/api/print/mpassPrint/'+content+"/"+checkId+"/"+version
  })
}


//打印留样标签查询信息
export function lybq (type,checkId) {
  return http({
    method: 'get',
    url: '/api/lybq/'+type+"/"+checkId
  })
}


//物料验收单
export function printYfbWlysd (params) {
  return http({
    method: 'get',
    url: '/api/print/yfbAcceptForm',
    params
  })
}
